package com.gitee.cashzhang27.test.cloud.seata.order.controller;

import com.gitee.cashzhang27.test.cloud.seata.order.service.OrderService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description：
 *
 * @author fangliangsheng
 * @date 2019-04-04
 */
@RestController
@AllArgsConstructor
public class OrderController {

  private OrderService orderService;

  @GetMapping("/create")
  public Boolean create(String userId, String commodityCode, Integer count) {

    orderService.create(userId, commodityCode, count);
    return true;
  }

}
